﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities;
using Toolbelt.ComponentModel.DataAnnotations.Schema;

namespace HCD.Entities
{
    public class OperationV : Entity<string>
    {
        [Column("ID")]
        public override string Id { get => base.Id; set => base.Id = value; }
        /// <summary>
        /// 病人标识号
        /// </summary>
        [Column("PATIENT_ID")]
        public string PatientId { get; set; }

        /// <summary>
        /// 病人本次住院标识
        /// </summary>
        [Column("VISIT_ID")]
        public string VisitId { get; set; }

        /// <summary>
        /// 手术安排标识-手术申请唯一标识
        /// </summary>
        [Column("OPERATION_ID")]
        public string OperationId { get; set; }

        /// <summary>
        /// 病人所在科室
        /// </summary>
        [Column("DEPT_STAYED")]
        public string DeptStayed { get; set; }

        /// <summary>
        /// 术前主要诊断
        /// </summary>
        [Column("DIAG_BEFORE_OPERATION")]
        public string DiagBeforeOperation { get; set; }

        /// <summary>
        /// 手术代码
        /// </summary>
        [Column("OPERATION_CODE")]
        public string OperationCode { get; set; }

        /// <summary>
        /// 手术名称
        /// </summary>
        [Column("OPERATION_NAME")]
        public string OperationName { get; set; }

        /// <summary>
        /// 手术等级
        /// </summary>
        [Column("OPERATION_SCALE")]
        public string OperationScale { get; set; }

        /// <summary>
        /// 申请日期及时间
        /// </summary>
        [Column("REQ_DATE_TIME")]
        public DateTime? ReqDateTime { get; set; }

        /// <summary>
        /// 手术日期及时间
        /// </summary>
        [Column("SCHEDULED_DATE_TIME")]
        public string ScheduledDateTime { get; set; }
        
        /// <summary>
        /// 手术状态
        /// </summary>
        [Column("OPERATION_STATUS")]
        public string OperationStatus { get; set; }

    }
}
